<%@page import="com.pb.poem.entity.Poem"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@include file="../common/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">
function back(){
	window.location="showoneself.jsp";
}

</script>
<body>
<form id="form1" name="form1" method="post" action="<%=request.getContextPath()%>/updatePoem"/>
<div class="content">
<table class="list">
		
<table width="500" border="0">
<%
int id=Integer.parseInt(request.getParameter("id"));
Poem poem=poemService.getPoemById(id);
request.setAttribute("poem", poem);

%>
  <tr >
  <td align="center">  
  <input id="id" name="id" value="<%=poem.getId()%>" type="hidden"/></td>
  </tr>
  <tr>s
  <td align="center">  
  <input id="poemname" name="poemname" value="<%=poem.getPoemname()%>" type="text"/></td>
  </tr>
  <tr>
    <td align="center"><input id="dynasty"name="dynasty" value="<%=poem.getDate()%>" type="text"/>
   <input id="author" name="author" value="<%=poem.getAuthor()%>" type="text"/>
    </td>
  </tr>
  <tr>
    <td > <input id="content" name="content" value="<%=poem.getContent()%>"  size="60" type="text"/></td>
  </tr>
</table>
<div>
   <input type="submit" value="修改"/>
   <input type="button"  value="返回" onclick="back();" />
</div>
	</tbody>
	  </table>
	  </div>
	  </form>
		<div >
</body>
</html>